package com.dronff.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.DefaultHttpRequest;
import org.apache.log4j.Logger;

public class HttpRemoteInvokerInboundHandler extends SimpleChannelInboundHandler<DefaultHttpRequest> {
    static final Logger logger = Logger.getLogger(ProtocolSelectHandler.class);

    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, DefaultHttpRequest defaultHttpRequest) throws Exception {
        if (!defaultHttpRequest.decoderResult().isSuccess()) {
            logger.debug("http协议解码失败");

            return;
        }
    }
}
